<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">

#box{
	border: 5px groove #CDC9C9;
	height: 450px;
	width: 500px;
	margin-left:auto;
	margin-right:auto;
	margin-top:50px;
	padding:10px 10px 20px 30px;
}
#b1{
	height: 50px;
	width: 510px;
	margin-top: 35px;
}

#s{
   height:40px;
   width:490px;
   margin-bottom:5px;
   }
body{
	margin:0;
	padding:20px;
	background-image:url("images/innerBJ.jpg");
	background-repeat:no-repeat;
	font:80% Arial, Helvetica, sans-serif;
	color:#555;
	line-height:100%;
}  
</style>
<script type="text/javascript" src="jquery/jquery-1.6.1.js"></script>
<script type="text/javascript">
$(function(){
	$("#update").click(function(){
	var opw=$("#opw").val();
	var npw1=$("#npw1").val();
	var npw2=$("#npw2").val();
	if(opw==""){
	 $("#msg").html("原密码不能为空");
	}
	else if(npw1!=npw2){
	 $("#msg").html("新密码与确认密码不一致 ");
	}
else $("#form").submit();
	
	})
})


</script>
</head>


<body >

	
	
<form id="form" action="action/m_passwordupdate.jsp" method="post">
       <center> <span id="msg" style="color:red;font-size:20px;"></span></center>
		<div id="box" >
		
			  <p class="STYLE2"> &nbsp;&nbsp;原密码：
			    <input type="password" name="opw" id="opw"/>
			  </p>
			  <p class="STYLE2"> &nbsp;&nbsp;新密码： 
			    <input type="password" name="npw1" id="npw1"/>
			  </p>
			  <p><span class="STYLE2">确认密码：
			  </span>
			    <input type="password" name="npw2" id="npw2"/>
			  </p>
			  <br />
			
			   <div class="alignright"> <input type="submit" name="save" id="update" value="保存"/>&nbsp;&nbsp;&nbsp;<input  type="reset" value="重置"></div>
			  <span id="msg"></span>
			</div>
		
		
		</form>
	
	<<center><p style="font-size:20px;color:red;">更改密码后，请妥善保管密码</p></center>

</body>
</html>
